Skip to content

docs: add generated Python API reference - #271

Merged
ccampbell-aai merged 6 commits into
AssemblyAI:masterfrom
mayankbohradev:docs/python-api-reference
Nov 18, 2026
Merged

ccampbell-aai merged 6 commits into
AssemblyAI:masterfrom
mayankbohradev:docs/python-api-reference

Conversation

@mayankbohradev

@mayankbohradev mayankbohradev commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add an HTML API reference for the public Python SDK. This closes #61.

The reference shows public modules, their docstrings, and their type annotations.

Changes

  • Add pdoc==16.0.0 to docs/requirements.txt. This keeps pdoc out of the SDK runtime dependencies.
  • Add scripts/build_api_docs.sh to build the reference in docs/api/.
  • Include the top-level, prerecorded, sync, dictation, LLM Gateway, and streaming APIs.
  • Make warnings fail the docs build.
  • Add a test for key public classes and methods. The test also checks that the internal _audio module is absent.
  • Add a GitHub Actions workflow. It runs on pull requests and pushes to master.
  • The workflow builds and tests the reference on Python 3.12. It uploads the HTML as an artifact. It does not publish the reference.
  • Ignore docs/api/ so generated files are not committed.

Tests

  • Docs build: passed locally.
  • Docs test: 1 test passed.
  • tox -e py312-latest: 742 tests passed. Tox reported 196 warnings.
  • Ruff and git diff --check: passed.
  • Ruby parsed the workflow YAML. actionlint was not available.

mayankbohradev and others added 4 commits October 18, 2026 10:22
Move the API reference check from tests/docs to docs/check_api_docs.py so
the regular pytest run no longer needs a built reference. Require one page
per documented module, add assemblyai.tts.v1 to the build, and link the
docs README with an absolute URL so it resolves on PyPI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ccampbell-aai ccampbell-aai added the skip-version-bump PR intentionally ships no release; bypasses the Version Bump Check label Nov 18, 2026
Pushes to master upload docs/api as a Pages artifact and deploy it; pull
requests still only build, check and upload the reference. The README now
links to the published reference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ccampbell-aai

Copy link
Copy Markdown
Contributor

Thanks @mayankbohradev, these docs look great, and the team and I would like to ship them! We pushed a few changes to your branch to get it ready:

  • Merged master in.
  • Moved the docs check from tests/docs/test_api_docs.py to docs/check_api_docs.py. The regular test run collects everything under tests/, and the check fails there unless the docs were built first. It now runs only in the docs workflow.
  • Added assemblyai.tts.v1, which landed after your branch was cut. The check now requires a page per module, so a module left out of the build fails it.
  • Added a deploy job that publishes the reference to GitHub Pages on every push to master: https://assemblyai.github.io/assemblyai-python-sdk/
  • Pointed the README link at the published reference, so it also works on PyPI.
  • Added the skip-version-bump label, since nothing in the package changes.

Thanks for the contribution!

@ccampbell-aai
ccampbell-aai merged commit 0ba094c into AssemblyAI:master Nov 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-version-bump PR intentionally ships no release; bypasses the Version Bump Check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate API reference

2 participants